package Game;

import java.awt.Graphics2D;
import java.awt.geom.Point2D;

public class Money extends GameObject
{
	EnergyBar lifeBar;
	
	public Money(int x, int y, int life)
	{
		super(x, y);
		
		Load("/Images/money.png");
		
		Setup(life);
	}
	
	void Setup(int life)
	{
		double aux = h * 0.15;
		lifeBar = new EnergyBar(new Point2D.Double(x, y + (h - aux)), new Point2D.Double(w, aux), life, false);
	}
	
	public Money(int x, int y, int w, int h, int life)
	{
		super(x, y, w, h);
		
		Load("/Images/money.png");
		
		Setup(life);
	}
	
	public void Draw(Graphics2D g2d)
	{
		super.Draw(g2d);
		
		lifeBar.Draw(g2d, false);
	}
}
